import api from '../utils/api';

export async function qryDepts() {
  return api.post('/sys/dept/qryDepts');
}

export async function qryDeptsByPid(param) {
  return api.post('/sys/dept/qryDeptsByPid', {
    data: JSON.stringify(param),
  });
}

export async function create(param) {
  return api.post('/sys/dept/create', {
    data: JSON.stringify(param),
  });
}

export async function remove(param) {
  return api.post('/sys/dept/remove', {
    data: JSON.stringify(param),
  });
}

export async function edit(param) {
  debugger;
  return api.post('/sys/dept/edit', {
    data: JSON.stringify(param),
  });
}


